package com.ioudi.digu.service.impl;

import java.util.Map;

import com.ioudi.digu.vo.MessageSelector;

public class AbstractMessageSelectorService extends AbstractService
{
	public MessageSelector getMessageSelecotr(String user)
	{
		Class[] methodParams = {String.class};
		Object result =  operationAtDatasource(user, "getMessageSelecotrInternal", methodParams, user);
		if(result instanceof MessageSelector)
		{
			return (MessageSelector)result;
		}
		return null;
	}
	
	public MessageSelector getMessageSelecotrInternal(String user)
	{
		return null;
	}
	
	public boolean updateMessageSelecotr(String user, Map change)
	{
		Class[] methodParams = {String.class, Map.class};
		Object result =  operationAtDatasource(user, "updateMessageSelecotrInternal", 
				methodParams, user, change);
		if(result != null)
		{
			return (Boolean)result;
		}
		return false;
	}
	
	public boolean updateMessageSelecotrInternal(String user, Map change)
	{
		return false;
	}
}
